{extend name='common@layout/base' /}
{block name='breadcrumb'}
<div class="nch-breadcrumb-layout">
    <div class="nch-breadcrumb wrapper"><i class="icon-home"></i>
            <span><a href="{$Think.request.base_url}">首页</a></span><span class="arrow">></span>
                <span><a href="{$Think.request.base_url}{:url('index/article/index',['cate_id'=>$article.type_id])}">{$type_name}</a></span><span class="arrow">></span>
                <span>文章内容</span>
          </div>
  </div>
{/block}
{block name='content'}
<link href="/old/shop/templates/new20160622/css/layout.css" rel="stylesheet" type="text/css">
<div class="nch-container wrapper bfc">
  <div class="left">
    <div class="nch-module nch-module-style01">
      <div class="title">
        <h3>文章分类</h3>
      </div>
      <div class="content">
        <div class="nch-sidebar-article-class">
          <ul>
          {if(isset($type_list))}
          {foreach $type_list as $val }
              <li><a href="{$Think.request.base_url}{:url('index/article/index',['cate_id'=>$val.id])}">{$val.name}</a></li>
          {/foreach}
          {/if}
                      </ul>
        </div>
      </div>
    </div>
    <div class="nch-module nch-module-style03">
      <div class="title">
        <h3>最新文章</h3>
      </div>
      <div class="content">
        <ul class="nch-sidebar-article-list">
        {if(isset($new_list) && !empty($new_list))}
          {foreach $new_list as $val }
             <li><i></i><a  href="{$val.url|default=url('index/article/detail',['article_id'=>$val.id])}">{$val.title|default=''}</a></li>
          {/foreach}
        {else /}
          <li>没有最新文章</li>
        {/if}
                            </ul>
      </div>
    </div>
  </div>
  <div class="right">
    <div class="nch-article-con">
      <h1>{$article.title|default=''}</h1>
      <h2>{$article.create_time?date('Y-m-d H:i:s',$article.create_time):''}</h2>
      <div class="default">
      	{$article.content|default='没有文章信息'}  
      </div>
      <!-- // to do <div class="more_article"> 
      <span class="fl">上一篇：
                没有符合条件的文章                </span> <span class="fr">下一篇：
                没有符合条件的文章                </span> 
                </div> -->
    </div>
  </div>
</div>
{/block}